package two_xia.ex5.Demo04;

public class Client {
    public static void main(String[] args) {
        System.out.println("==========KFC套餐==========");
        MealBuilder mb = (MealBuilder) XMLUtil.getBean();
        KFCWaiter waiter = new KFCWaiter(mb);
        Meal meal = waiter.construct();
        System.out.println("==\t\t  套餐A：\t\t==");
        System.out.println("==\t\t主食：" + meal.getFood() + "\t\t==");
        System.out.println("==\t\t饮料：" + meal.getDrink() + "\t\t==");
        System.out.println("==========================");
    }
}